<body>
<link type="text/css" href="<{$config.weburl}>/templates/wap/new_css/gm_base.css" rel="stylesheet"/>
<script type="text/javascript" src="<{$config.weburl}>/templates/wap/js/list/swiper.min.js"></script>
<header>
    <div class="header_top sys_header">
        <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
        <h1 class="tit">全部票务</h1>
        <{include file="detail_header.htm"}>
    </div>
</header>

<!-- 分类 start -->
<input type="hidden" name="attrid" id="attrid" value="0"/>

<div class="m-class ">
    <div class="swiper-container lst swiper-container-horizontal swiper-container-free-mode">
        <div class="swiper-wrapper" id="swiper-wrapper">
            <a class="itm swiper-slide  <{if empty($cat.catid) }>swiper-slide-active on<{/if}>"
               href="<{$config.weburl}>/?m=product&s=list">全部</a>
            <{foreach item=vo from=$cat_list}>
            <a class="itm swiper-slide <{if $cat.catid ==$vo.catid  }>swiper-slide-active on<{/if}>"
               href="<{$config.weburl}>/?m=product&s=list&id=<{$vo.catid}>"><{$vo.cat}></a>
            <{/foreach}>
        </div>
    </div>
</div>
<!-- 分类 end -->

<div class="m-main">
    <section class="main-xl">
        <div class="change-type">
            <div class="fex">
                <!--list开始-->
                <{foreach item=vo from=$info.list}>
                <div class="pdt_list">
                    <a href="<{$config.weburl}>/?m=product&s=detail&id=<{$vo.id}>">
                        <div class="pdt_img"><img src="<{$vo.pic}>" width="110" height="148"></div>
                        <div class="pdt_txt">
                            <div class="pdt_box">
                                <p class="p_tit">
                                    <em><{$vo.pname|truncate:30:'...'}></em>
                                    <span>时间：<{$vo.performance_start_time|date_format:"%Y-%m-%d"}> </span>
                                    <span>场馆：<{$vo.spot|get_spot_name}></span>
                                    <span>票价：<strong class="price"><{$vo.price_list}>元</strong></span>
                                    <{if $vo.discount > 0}>
                                    <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c4"><{$vo.discount}>折</em></span>
                                    <{/if}>

                                    <{if $now_time >= $vo.reserve_time and $now_time <= $vo.sell_time || empty($vo.sell_time)}>
                                    <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">预售中</em></span>

                                    <{elseif !empty($vo.sell_time) && $now_time >= $vo.sell_time and $now_time <= $vo.performance_end_time }>
                                            <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c2">销售中</em></span>

                                    <{elseif $now_time >= $vo.performance_end_time}>
                                        <span class="tags" style="float: left;padding-top: 10px;"><em class="tag tag-c3">已结束</em></span>
                                    <{/if}>


                                </p>
                            </div>
                        </div>
                    </a>
                </div>
                <{/foreach}>
                <!--list结束-->
            </div>
        </div>

    </section>
</div>
<div class="page">
    <{$info.page}>
</div>


<script>
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        slidesPerView: 'auto',
        paginationClickable: true,
        spaceBetween: 30
    });
</script>


